package com.mp.approvalreq.entity.message;

import java.util.Objects;

/**
 * Created by liuqi on 2018/8/14.
 */
public class TemplateMsg {
	
	private Integer companyId;
	private Integer templateId;
	private Integer operateFlag;

	public TemplateMsg() {
	}
	
	public Integer getCompanyId() {
		return companyId;
	}
	
	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}
	
	public Integer getTemplateId() {
		return templateId;
	}
	
	public void setTemplateId(Integer templateId) {
		this.templateId = templateId;
	}
	
	public Integer getOperateFlag() {
		return operateFlag;
	}
	
	public void setOperateFlag(Integer operateFlag) {
		this.operateFlag = operateFlag;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		TemplateMsg that = (TemplateMsg) o;
		return Objects.equals(companyId, that.companyId) &&
				Objects.equals(templateId, that.templateId) &&
				Objects.equals(operateFlag, that.operateFlag);
	}

	@Override
	public int hashCode() {
		return Objects.hash(companyId, templateId, operateFlag);
	}

	@Override
	public String toString() {
		return "TemplateMsg{" +
				"companyId=" + companyId +
				", templateId=" + templateId +
				", operateFlag=" + operateFlag +
				'}';
	}
}

